import server from '@/utils/request.js'

export default {
    //注册
    getRegister(data) {
        return server.post('/api/users/register',data)

    },
    //查找用户是否存在
    getExists(data){
        return server({
            url:'/api/users/findUserName',
            method:'POST',
            data:data
        })
    },
    //登陆
    getLogin(data){
        return server({
            url:'/api/users/login',
            method:'POST',
            data:data
        })
    },
    addShop(data){
        return server({
            url:'/api/user/shoppingCart/getShoppingCart',
            method:'post',
            data:data
        })
    }

}